-- GENERATED SPELL FOR [Jailor Marlgen] --


function spell0_2428(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(6533,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2428', 2338, 1)
end

function spell1_2428(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2428', 561, 1)
end

function Sorts_2428(pUnit, Event)
local choix_sorts_2428 = math.random(0, 1)
if choix_sorts_2428 == 0 then
pUnit:RegisterEvent('spell0_2428', 1, 1)
end
if choix_sorts_2428 == 1 then
pUnit:RegisterEvent('spell1_2428', 1, 1)
end
end

function mob2428_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2428', math.random(1500, 3000), 1)
end

function mob2428_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2428_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2428_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2428, 1, 'mob2428_Action')
RegisterUnitEvent(2428, 2, 'mob2428_Leave')
RegisterUnitEvent(2428, 3, 'mob2428_Kill')
RegisterUnitEvent(2428, 4, 'mob2428_Die')
